<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>

<body>

</body>
<script>
    //判断两个值是否完全相等Object.is
    console.log(Object.is(NaN, NaN))

    //对象合并Object.assign
    const config1 = {
        host: 'localhost',
        port: 3306,
        name: 'root',
        pass: 'root'
    }

    const config2={
        host:'http://baidu.com',
        port:330666,
        name:'angle',
        pass:'iloveyou',
        test2:'test2'
    }
    console.log(Object.assign(config1,config2))
</script>

</html>